package com.wrx.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wrx.server.pojo.Collect;
import com.wrx.server.pojo.CollectBar;
import com.wrx.server.pojo.RespBean;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wrx
 * @since 2021-04-20
 */
public interface ICollectService extends IService<Collect> {

    /**
     * 收藏主题帖
     * @param collect
     * @param request
     * @return
     */
    RespBean addCollectThemePost(Collect collect, HttpServletRequest request);
    /**
     * 取消收藏主题帖
     * @param collect
     * @param request
     * @return
     */
    RespBean delCollectThemePost(Collect collect, HttpServletRequest request);


    /**
     * 收藏贴吧
     * @param collectBar
     * @param request
     * @return
     */
    RespBean addCollectBar(CollectBar collectBar, HttpServletRequest request);

    /**
     * 取消收藏贴吧
     * @param collectBar
     * @param request
     * @return
     */
    RespBean delCollectBar(CollectBar collectBar, HttpServletRequest request);
}
